package com.evony.common.beans 
{
    import flash.events.*;
    import mx.events.*;
    
    public class ColonyBean extends Object
    {
        public function ColonyBean(arg1:Object=null)
        {
            super();
            var loc1:*=0;
            _bindingEventDispatcher = new flash.events.EventDispatcher(flash.events.IEventDispatcher(this));
            if (arg1 != null) 
            {
                if (arg1.allianceName != null) 
                {
                    this.allianceName = arg1.allianceName;
                }
                if (arg1.castleId != null) 
                {
                    this.castleId = arg1.castleId;
                }
                if (arg1.cityName != null) 
                {
                    this.cityName = arg1.cityName;
                }
                if (arg1.endTime != null) 
                {
                    this.endTime = arg1.endTime;
                }
                if (arg1.isCanLevy != null) 
                {
                    this.isCanLevy = arg1.isCanLevy;
                }
                if (arg1.isCanOverview != null) 
                {
                    this.isCanOverview = arg1.isCanOverview;
                }
                if (arg1.logoUrl != null) 
                {
                    this.logoUrl = arg1.logoUrl;
                }
                if (arg1.lordName != null) 
                {
                    this.lordName = arg1.lordName;
                }
                if (arg1.position != null) 
                {
                    this.position = arg1.position;
                }
                if (arg1.prestige != null) 
                {
                    this.prestige = arg1.prestige;
                }
                if (arg1.relation != null) 
                {
                    this.relation = arg1.relation;
                }
                if (arg1.startTime != null) 
                {
                    this.startTime = arg1.startTime;
                }
                if (arg1.status != null) 
                {
                    this.status = arg1.status;
                }
                if (arg1.time != null) 
                {
                    this.time = arg1.time;
                }
            }
            return;
        }

        public function toObject():Object
        {
            var loc1:*=new Object();
            loc1.allianceName = this.allianceName;
            loc1.castleId = this.castleId;
            loc1.cityName = this.cityName;
            loc1.endTime = this.endTime;
            loc1.isCanLevy = this.isCanLevy;
            loc1.isCanOverview = this.isCanOverview;
            loc1.logoUrl = this.logoUrl;
            loc1.lordName = this.lordName;
            loc1.position = this.position;
            loc1.prestige = this.prestige;
            loc1.relation = this.relation;
            loc1.startTime = this.startTime;
            loc1.status = this.status;
            loc1.time = this.time;
            return loc1;
        }

        public function toDebugString(arg1:String=""):String
        {
            var loc1:*=0;
            var loc2:*="";
            loc2 = loc2 + (arg1 + "allianceName = " + this.allianceName + "\n");
            loc2 = loc2 + (arg1 + "castleId = " + this.castleId + "\n");
            loc2 = loc2 + (arg1 + "cityName = " + this.cityName + "\n");
            loc2 = loc2 + (arg1 + "endTime = " + this.endTime + "\n");
            loc2 = loc2 + (arg1 + "isCanLevy = " + this.isCanLevy + "\n");
            loc2 = loc2 + (arg1 + "isCanOverview = " + this.isCanOverview + "\n");
            loc2 = loc2 + (arg1 + "logoUrl = " + this.logoUrl + "\n");
            loc2 = loc2 + (arg1 + "lordName = " + this.lordName + "\n");
            loc2 = loc2 + (arg1 + "position = " + this.position + "\n");
            loc2 = loc2 + (arg1 + "prestige = " + this.prestige + "\n");
            loc2 = loc2 + (arg1 + "relation = " + this.relation + "\n");
            loc2 = loc2 + (arg1 + "startTime = " + this.startTime + "\n");
            loc2 = loc2 + (arg1 + "status = " + this.status + "\n");
            loc2 = loc2 + (arg1 + "time = " + this.time + "\n");
            return loc2;
        }

        public function copyTo(arg1:com.evony.common.beans.ColonyBean):void
        {
            arg1.allianceName = this.allianceName;
            arg1.castleId = this.castleId;
            arg1.cityName = this.cityName;
            arg1.endTime = this.endTime;
            arg1.isCanLevy = this.isCanLevy;
            arg1.isCanOverview = this.isCanOverview;
            arg1.logoUrl = this.logoUrl;
            arg1.lordName = this.lordName;
            arg1.position = this.position;
            arg1.prestige = this.prestige;
            arg1.relation = this.relation;
            arg1.startTime = this.startTime;
            arg1.status = this.status;
            arg1.time = this.time;
            return;
        }

        [Bindable]
        public var endTime:Number;

        [Bindable]
        public var lordName:String;

        [Bindable]
        public var status:int;

        [Bindable]
        public var relation:int;

        [Bindable]
        public var cityName:String;

        [Bindable]
        public var isCanLevy:Boolean;

        [Bindable]
        public var position:String;

        [Bindable]
        public var logoUrl:String;

        [Bindable]
        public var time:String;

        [Bindable]
        public var castleId:int;

        [Bindable]
        public var prestige:int;

        [Bindable]
        public var isCanOverview:Boolean;

        [Bindable]
        public var startTime:Number;

        [Bindable]
        public var allianceName:String;
    }
}
